package com.googlecode.mysqlcommenter.model;

import java.util.ArrayList;
import java.util.List;

public class Table extends AbstractDbItem {
   private Db db;
   private List<Column> columns = new ArrayList<Column>();
   public Table(String name,Db db){
      super(name);
      this.db = db;
   }

   public List<Column> getColumns() {
      return columns;
   }
   public Db getDb() {
      return db;
   }

   @Override
   public String getDescription() {
      return getDb() +"."+getName();
   }

}
